# Use an official Python runtime as a parent image
FROM python:3.6

# Set the working directory to /app
WORKDIR /app_distribution

# Copy the current directory contents into the container at /app
COPY . /app_distribution

# Install any needed packages specified in requirements.txt
RUN pip install  -r requirements.txt   -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

# Make port 80 available to the world outside this container
EXPOSE 8000

# Define environment variable

# Run app.py when the container launches
CMD ["python", "manage.py","runserver","0.0.0.0:8000"]